<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
		
			#btn1{
				width: 100px;
				height: 80px;
				background-color: #ffffff;
			}
			#btn2{
				width: 100px;
				height: 80px;
				background-color: #ffffff;
			}
			#btn3{
				width: 100px;
				height: 80px;
				background-color: #ffffff;
			}
			#a{
				width: 800px;
				height: 500px;
				border: 1px solid red;
				background-color: #ff0;
				text-align: center;
				line-height: 400px;
			}
			
		</style>
		<script src="../js/jquery-1.11.1.js"></script>
	</head>
	<body>
		<button id="btn1">tab01</button>
		<button id="btn2">tab02</button>
		<button id="btn3">tab03</button>
		<div id="a"><p>tab文字内容一</p></div>
		<div id="a1" style="display: none">
			<p>tab文字内容二</p>
		</div>
		<div id="a2" style="display: none">
			<p>tab文字内容三</p>
		</div>
		<script>
			$("#btn1").click(function(){
			$("p").text("tab文字内容一");
			$("#btn1").css("background-color","#ff0"
			);
			$("#btn2").css("background-color","#fff"
			);	
			$("#btn3").css("background-color","#fff");
			
			});
			
			$("#btn2").click(function(){
				$("p").text("tab文字内容二");
			$("#btn1").css("background-color","#fff"
			);	
			$("#btn2").css("background-color","#ff0"
			);
			$("#btn3").css("background-color","#fff");
			});
			
			
			$("#btn3").click(function(){
				$("p").text("tab文字内容三");
			$("#btn1").css("background-color","#fff"
			);	
			$("#btn2").css("background-color","#fff"
			);	
			$("#btn3").css("background-color","#ff0");
			});
		</script>
	</body>
</html>